#!/usr/bin/python3
#-*- coding: utf-8 -*-
# @Time    : 2019/2/14 7:25 PM
# @Author  : way
# @Email   : wuaoyi@gmail.com
# @File    : sse.py
# @Software: PyCharm
import requests,re,json
import time
url = 'http://www.szse.cn/disclosure/listed/notice/index.html'
# url2 = "http://www.szse.cn/api/disc/announcement/annList?random=0.7106345257900302"
payload = {'stock':'002699'}
wbdata = requests.post(url,params=payload)
#
print(wbdata.url)

print(time.strftime('%Y-%m-%d',time.localtime(time.time())))


# url3 = 'http://www.szse.cn/api/disc/announcement/annList?random=0.14432946372417632'
#
# payload2 = {'seDate': ["", ""], 'stock': ["002699"], 'channelCode': ["listedNotice_disc"], 'pageSize': 30, 'pageNum': 1}
#
# payload3 = {'seDate': ["", ""], 'stock': ["300027"], 'channelCode': ["listedNotice_disc"], 'pageSize': 30, 'pageNum': 1}
#
# print(payload2)

# data = requests.post(url3,data=json.dumps(payload2),headers={'Content-Type': 'application/json'})
#
# data.encoding = 'utf-8'
#
# p_json = data.json()
#
# print(p_json)
#
# data2 = requests.post(url3,data=json.dumps(payload3),headers={'Content-Type': 'application/json'})
#
# p2_json = data2.json()
#
# print(p2_json)